home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / DocShell / Shell.r < prev    next >
Encoding:
Text File  |  1997-02-13  |  32.8 KB  |  1,366 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        Shell.r
  3.  
  4.     Contains:    Resources for the document shell
  5.  
  6.     Owned by:    Nick Pilch
  7.  
  8.     Copyright:    © 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <23>      10/23/96    TJ        Removed LowMemDlg.rsrc
  13.         <22>      10/23/96    DH        Removed outdated resources to fix problem
  14.                                     with previous checkin.
  15.         <21>      10/22/96    DH        1336808,1333949,1368888,1375780 Included
  16.                                     low-mem dialog resources.
  17.         <20>     10/4/96    CSL        1334277: Move AboutBox resources to
  18.                                     AboutBox.r
  19.         <19>    27.09.1996    NP        1385775: Incorrect dialog after OD
  20.                                     initialization fails.
  21.         <18>    20.09.1996    NP        1389025: OpenDoc Setup changes for new
  22.                                     config.
  23.         <17>     9/18/96    TJ        1384389 Remove RSRC names in Non-Debug
  24.                                     Builds.
  25.         <16>     9/10/96    eeh        1384356: make resources purgeable
  26.         <15>     7/30/96    eeh        1372943: new goodbye alerts
  27.         <14>     6/23/96    NP        10002: Launch time speedups.
  28.         <13>     6/22/96    TJ        Use AboutDlogs.res instead of OpenDocX.res.
  29.         <12>     6/21/96    jpa        1358818: Added "File" menu for container
  30.                                     apps.
  31.         <11>     6/19/96    NP        10002: Launch time speedups.
  32.         <10>     6/18/96    NP        10002: Launch time speedups.
  33.          <9>     5/31/96    jpa        T10012: Added dreaded Quit command
  34.                                     (CyberDog only.)
  35.          <8>    .04.1996    NP        One more time: non-debug build fix.
  36.          <7>    .04.1996    NP        Oops. Didn't work for a non-debug build.
  37.          <6>    .04.1996    NP        1286751: Present alert when trying to use
  38.                                     Open… when no Finder is running.
  39.          <5>     3/29/96    DM        1334273: added new alert 493 which
  40.                                     announces OpenDoc must quit immediately due
  41.                                     to very low memory.
  42.          <4>    .03.1996    NP        1307182: Removed STR# item.
  43.          <3>     3/14/96    NP        1330149: Remove objectionable MENU entries.
  44.          <2>     1/15/96    JA        1269485: Resized About dlog & added 'ictb'
  45.                                     to change font.
  46.         <43>    10/31/95    eeh        1297192: make room for strings in dialogs
  47.         <42>    10/31/95    TJ        Made the Splash Screen Non-Modal.#1297413
  48.         <41>    10/26/95    TÇ        1296574 GM:Cannot set default memory
  49.                                     partition size.
  50.         <40>    10/25/95    TÇ        1281409 GM: OpenDoc needs an AboutBox.
  51.         <39>    10/24/95    jpa        1293441: Added more lo-mem alerts.
  52.         <38>    10/18/95    CC        GM 1293627: Use
  53.                                     alertPositionParentWindowScreen for all
  54.                                     alerts.
  55.         <37>    10/16/95    CC        GM 1291511: Layout changes to Save As
  56.                                     dialog to hide Kind popup.
  57.         <36>     10/4/95    jpa        CmmnUtls.r --> UtilCmmn.r [1285767]
  58.         <35>     9/29/95    eeh        1287262: include CmmnUtls.r, remove quotes
  59.         <34>     9/27/95    eeh        1284893: fix capitalization
  60.         <33>     9/20/95    TÇ        1285201 GM: Use
  61.                                     alertPositionParentWindowScreen for dialogs
  62.         <32>     9/12/95    JBS        1282526 Status message needed during "Save
  63.                                     Doc to another volume"
  64.         <31>     9/12/95    eeh        1253309: add kSHLPluginErrorStrID string
  65.         <30>      9/8/95    TÇ        1252120 FB1: New documents saved w/ StdFile
  66.                                     & trashed if closed w/o saving
  67.         <29>      9/8/95    eeh        1268998: add prefs file name 'STR '
  68.                                     resource
  69.         <28>      9/7/95    eeh        1278987: 'STR ' resources for UniquifyName
  70.         <27>     8/22/95    eeh        1276281: template strings
  71.         <26>     8/15/95    TÇ        1258489 Remove TM from OpenDoc folder
  72.         <25>      8/8/95    jpa        Added kSHLDragToTrashAlert (commented out)
  73.                                     [1259401]
  74.         <24>     6/20/95    TÇ        1217754 BB: Delete Document command
  75.         <23>      6/8/95    RR        #1257260 Collapse base classes. #1214898
  76.                                     StdTypes.r -> ODTypes.r
  77.         <22>      6/1/95    jpa        Added ^2 to error DITL so we can show
  78.                                     exception message str. [1242839]
  79.         <21>     5/19/95    TÇ        1155852 BB: String constants need to be
  80.                                     moved to resource for Localization
  81.         <20>      5/7/95    TÇ        1155852 BB: String constants need to be
  82.                                     moved to resource for Localization (mostly
  83.                                     done)
  84.         <19>      5/4/95    jpa        Changed text of low-mem alert and added app
  85.                                     low-mem alert [1235657]
  86.         <18>      5/1/95    CL        Change Revert and Save Changes ALRTs to
  87.                                     DLOGs, add STR# to support cmd-keys for
  88.                                     buttons [1228662,1228678,1229912].
  89.         <17>     4/26/95    TJ        Removed version Resources, they are now in
  90.                                     ODVersion.r
  91.         <16>     4/13/95    CG        #1221869: Added STR resources for Shell
  92.                                     Plug-Ins folder name.
  93.         <15>     4/10/95    TÇ        #1236210    BB: "Show Parts Bin" menu item
  94.                                     must be removed from the Edit menu
  95.         <14>     2/20/95    TÇ        #1210979 BB: 5-$ Bugs need to be evaluated
  96.                                     and removed from Shell
  97.                                     #1221861 BB: Incomplete AOCE support needs
  98.                                     to be removed from OpenDoc
  99.         <13>     2/16/95    CG        #1191912: Changed Print to Print…
  100.         <12>      1/6/95    jpa        Read DocStub.rsrc, not DocStub.r.
  101.         <11>    12/25/94    TÇ        1191189 Eliminate duplicate Def.h, Def.xh
  102.                                     files
  103.                                     1187709 More frequent, robust and earlier
  104.                                     error detection and reporting in the Shell
  105.                                     Moved Error message resources to ErrMsgs.r.
  106.         <10>    11/17/94    CG        (for TC) 1194570, 1193996, 1194812, 1191912
  107.                                     - user experience fixes.
  108.          <9>     10/7/94    TÇ        #1187826 Document Info functionality
  109.          <8>     9/19/94    TÇ        #1150345 Shell.r does not need to refer to
  110.                                     Test Parts
  111.          <7>     9/16/94    eeh        #1186754: eliminate non-AOCE document menu.
  112.          <6>     8/25/94    TÇ        #1183223 Enabled launching of documents in
  113.                                     folders other than that of the OpenDoc
  114.                                     libraries.  Added document stub resources.
  115.          <5>     8/19/94    TÇ        #1159233 Remove references to j3di
  116.          <4>      8/8/94    jpa        Added "Heap Info" dialog [1179567]
  117.          <3>     7/21/94    TÇ        #define oldTemp // to get 'dctb' resources
  118.                                     to rez
  119.          <2>     7/21/94    eeh        fix to comments
  120.          <1>      7/6/94    TÇ        first checked in
  121.          <0>      7/6/94    SV        SOMverted
  122.         <39>     4/11/94    TÇ        #1155854 Use CustomPutFile for Save A Copy.
  123.         <38>      4/7/94    TÇ        fixed #1155956
  124.         <37>     3/23/94    CG        #1151393: Use OpenDoc-wide consts for
  125.                                     'vers' 1 and 2 resources.
  126.         <36>      3/9/94    eeh        bug #1149630: reversed "Forward" and
  127.                                     "Reply" in mailer menu.
  128.         <35>     2/15/94    TÇ        fix #1144029 and some cleanup
  129.         <34>     1/24/94    NP        Changed DITL for About Box to enable the
  130.                                     PICT item.
  131.         <33>     1/19/94    eeh        added Open Document menu item
  132.         <32>     1/18/94    TÇ        removed scsz resource for AppleScript, the
  133.                                     Shell library does not need an scsz
  134.                                     resource, only the OpenDoc™ extension and
  135.                                     documents do.
  136.         <31>     1/18/94    TÇ        use kOpenDocShellSignature & remove BNDL &
  137.                                     FREF resources (why were they there?)
  138.         <30>     1/13/94    eeh        fixed name of document menu
  139.         <29>     1/11/94    eeh        make mailer menu heierarchical
  140.         <28>    12/17/93    eeh        changed dontReadExtensionTerms to
  141.                                     readExtensionTerms in 'scsz'
  142.         <27>     12/9/93    eeh        changed rezid of 'scsz' to 0
  143.         <26>     12/3/93    TÇ        Rename ODError.h to ErrorDef.h
  144.         <25>    11/30/93    NP        Added alwaysSendSubject to scsz resource.
  145.         <24>    11/24/93    TÇ        remove comments about SIZE -1 resource
  146.         <23>    11/15/93    eeh        removed 'aete' resource; added menus for
  147.                                     Reply and Forward (mailer)
  148.         <22>    11/12/93    CG        Added scsz resource for AppleScript.
  149.         <21>    10/27/93    TÇ        update type 'errs' for the change of
  150.                                     ODError from ODULong to ODSLong
  151.         <20>    10/20/93    eeh        Readded expand- and contract-mailer menus
  152.                                     (for use during development only).
  153.         <19>    10/18/93    TÇ        moved SIZE -1 resource to Document.r
  154.         <18>    10/12/93    eeh        changes to AOCE menu
  155.         <17>     10/8/93    TÇ        bifurcated Document menu into normal and
  156.                                     AOCE versions
  157.         <16>     10/7/93    VL        Added more error codes.
  158.         <15>     10/7/93    eeh        various changes related to adding Mailer
  159.                                     support (more to come)
  160.         <14>     10/1/93    RR        Fix file corruption
  161.         <13>     10/1/93    TÇ        fixed definition of 'errs' resource.
  162.                                     UNSIGNED LONGINT for fields
  163.         <12>     9/30/93    TÇ        changed 'errs' resource to use LONGINTs for
  164.                                     error numbers and ranges
  165.         <11>     9/22/93    NP        Changed aete resource.
  166.         <10>     9/17/93    TÇ        changed 'File' menu to 'Document'
  167.          <9>     9/15/93    TÇ        added Error Handling resources, 'errs' etc.
  168.          <8>     9/10/93    RR        Remove File and Edit from MBAR resource
  169.          <7>     8/27/93    TÇ        added About Box from Prototype
  170.          <6>     8/19/93    TÇ        updated Menus for HI Changes
  171.          <5>      8/4/93    TÇ        added AETE resource
  172.          <4>     7/21/93    TÇ        updated standard DocShell menus
  173.          <3>     5/24/93    TÇ        add Save Changes alert (stolen from
  174.                                     TeachText) and Revert alert
  175.          <2>     4/30/93    TÇ        isStationeryAware
  176.          <1>     4/27/93    RCR        First Checked In.
  177.  
  178.     To Do:
  179.     In Progress:
  180.         
  181. */
  182.  
  183. #ifndef _SHELLDEF_
  184. #include "ShellDef.h"
  185. #endif
  186.  
  187. #ifndef SOM_Module_OpenDoc_StdDefs_defined
  188. #include "StdDefs.r"
  189. #endif
  190.  
  191.  
  192. #define SystemSevenOrBetter 1            // we want the extended types
  193. #define    SystemSevenOrLater    1            // Types.r uses this variable
  194.  
  195. #define oldTemp            // to get 'dctb' resources to rez
  196. #ifndef __TYPES_R__
  197. #include "Types.r"
  198. #endif
  199. #undef oldTemp
  200.  
  201. #ifndef __SYSTYPES_R__
  202. #include "SysTypes.r"
  203. #endif
  204.  
  205. #ifndef _CONSTDEF_
  206. #include "ConstDef.h"
  207. #endif
  208.  
  209. #ifndef _UTILDEFS_
  210. #include "UtilDefs.h"
  211. #endif
  212.  
  213. include "DocStub.rsrc";                    // Include document-stub resources
  214.  
  215.  
  216. #define    rMenuBar    128                /* application's menu bar */
  217. #define    rAboutAlert    128                /* about alert */
  218. #define    rDocWindow    128                /* application's window */
  219.  
  220. /* The following constants are used to identify menus and their items. The menu IDs
  221.    have an "m" prefix and the item numbers within each menu have an "i" prefix. */
  222. #define    mApple                    255        /* Apple menu */
  223. #define    iAbout                    1
  224.  
  225. #define    mFile                    256        /* File menu */
  226.  
  227. #define    mEdit                    257        /* Edit menu */
  228.  
  229.  
  230. resource 'MBAR' (255, preload) {
  231.     { mApple  };        /* File and edit are added later */
  232. };
  233.  
  234.  
  235. resource 'MENU' (mApple, preload) {
  236.     mApple, textMenuProc,
  237.     0b1111111111111111111111111111101,    /* disable dashed line, enable About and DAs */
  238.     enabled, apple,
  239.     {
  240.         "About OpenDoc™…",
  241.             noicon, nokey, nomark, plain;
  242.         "-",
  243.             noicon, nokey, nomark, plain
  244.     }
  245. };
  246.  
  247. resource 'MENU' (mFile) {
  248.     /* Note: When changing this menu, keep the "File" menu below in sync! */
  249.     mFile, textMenuProc,
  250.     0b0000000000000010001011111010101,    
  251.     enabled, "Document",
  252.     {
  253.         "New",
  254.             noicon, "N", nomark, plain;
  255.         "Open Selection",
  256.             noicon, nokey, nomark, plain;
  257.         "Open Document…",
  258.             noicon, "O", nomark, plain;
  259.         "Insert…",
  260.             noicon, nokey, nomark, plain;
  261.         "Close",
  262.             noicon, "W", nomark, plain;
  263.         "Delete",
  264.             noicon, nokey, nomark, plain;
  265.         "-",
  266.             noicon, nokey, nomark, plain;
  267.         "Save",
  268.             noicon, "S", nomark, plain;
  269.         "Save a Copy…",
  270.             noicon, nokey, nomark, plain;
  271.         "Revert to Saved",
  272.             noicon, nokey, nomark, plain;
  273.         "Drafts…",
  274.             noicon, nokey, nomark, plain;
  275.         "Document Info",
  276.             noicon, nokey, nomark, plain;
  277.         "-",
  278.             noicon, nokey, nomark, plain;
  279.         "Page Setup…",
  280.             noicon, nokey, nomark, plain;
  281.         "Print…",
  282.             noicon, "P", nomark, plain;
  283.     }
  284. };
  285.  
  286. resource 'MENU' (kODFileMenuID) {
  287.     mFile, textMenuProc,    /* same menuID as regular Document menu */
  288.     0b0000000000000010001011111010101,    
  289.     enabled, "File",        /* ...but different title */
  290.     {
  291.         "New",
  292.             noicon, "N", nomark, plain;
  293.         "Open Selection",
  294.             noicon, nokey, nomark, plain;
  295.         "Open Document…",
  296.             noicon, "O", nomark, plain;
  297.         "Insert…",
  298.             noicon, nokey, nomark, plain;
  299.         "Close",
  300.             noicon, "W", nomark, plain;
  301.         "Delete",
  302.             noicon, nokey, nomark, plain;
  303.         "-",
  304.             noicon, nokey, nomark, plain;
  305.         "Save",
  306.             noicon, "S", nomark, plain;
  307.         "Save a Copy…",
  308.             noicon, nokey, nomark, plain;
  309.         "Revert to Saved",
  310.             noicon, nokey, nomark, plain;
  311.         "Drafts…",
  312.             noicon, nokey, nomark, plain;
  313.         "Document Info",
  314.             noicon, nokey, nomark, plain;
  315.         "-",
  316.             noicon, nokey, nomark, plain;
  317.         "Page Setup…",
  318.             noicon, nokey, nomark, plain;
  319.         "Print…",
  320.             noicon, "P", nomark, plain;
  321.         "-",
  322.             noicon, nokey, nomark, plain;
  323.         "Quit",                    /* ...and a Quit command */
  324.             noicon, "Q", nomark, plain;
  325.     }
  326. };
  327.  
  328. resource 'MENU' (mEdit, preload) {
  329.     mEdit, textMenuProc,
  330.     0b0000000000000000000000000000000,    /* disable everything, program does the enabling */
  331.     enabled, "Edit",
  332.      {
  333.         "Undo",
  334.             noicon, "Z", nomark, plain;
  335.         "Redo",
  336.             noicon, "R", nomark, plain;
  337.         "-",
  338.             noicon, nokey, nomark, plain;
  339.         "Cut",
  340.             noicon, "X", nomark, plain;
  341.         "Copy",
  342.             noicon, "C", nomark, plain;
  343.         "Paste",
  344.             noicon, "V", nomark, plain;
  345.         "Paste As…",
  346.             noicon, nokey, nomark, plain;
  347.         "Clear",
  348.             noicon, nokey, nomark, plain;
  349.         "Select All",
  350.             noicon, "A", nomark, plain;
  351.         "-",
  352.             noicon, nokey, nomark, plain;
  353.         "Part Info",
  354.             noicon, "L", nomark, plain;
  355.         "Preferences…",
  356.             noicon, nokey, nomark, plain;
  357.         "-",
  358.             noicon, nokey, nomark, plain;
  359.         "View in Window",
  360.             noicon, nokey, nomark, plain
  361.     }
  362. };
  363.  
  364. /* saving to a different volume status dialog */
  365.     /* $$$$$ fix coordinates below */
  366.  
  367. resource 'DLOG' (kSHLSaveDiffVolDialogID, purgeable /*<eeh> added for 1384356*/) {
  368.     {40, 40, 92, 297},
  369.     dBoxProc,
  370.     visible,
  371.     goAway,
  372.     0x0,
  373.     kSHLSaveDiffVolDialogID,
  374.     "",
  375.     alertPositionParentWindowScreen
  376. };
  377.  
  378. resource 'DITL' (kSHLSaveDiffVolDialogID, purgeable /*<eeh> added for 1384356*/) {
  379.     {    /* array DITLarray: 2 elements */
  380.         /* [1] */
  381.         {10, 20, 42, 52},
  382.         Icon {
  383.             disabled,
  384.             1
  385.         },
  386.         /* [2] */
  387.         {10, 65, 42, 259},
  388.         StaticText {
  389.             disabled,
  390.             "Saving Document..."    /* $$$$$ should have document name */
  391.         }
  392.     }
  393. };
  394.  
  395.  
  396. /* "Do you want to save changes?" dialog */
  397. resource 'DLOG' (kSHLsvChanges, purgeable /*<eeh> added for 1384356*/) {
  398.     {94, 80, 211, 434},    
  399.     dBoxProc, invisible, noGoAway, 0,
  400.     kSHLsvChanges,
  401.     "",
  402.     alertPositionParentWindowScreen
  403. };
  404.  
  405. /* Item list for "Do you want to save changes?" dialog              */
  406. /* Note: Strings in the STR# following this DITL correspond to     */
  407. /* Each DITL item.  Strings represent the command key code       */
  408. /* for buttons in this DITL.                                     */
  409. resource 'DITL' (kSHLsvChanges, purgeable /*<eeh> added for 1384356*/) {
  410.     {    /* array DITLarray: 5 elements */
  411.         /* [1] */
  412.         {87, 284, 107, 344},
  413.         Button {
  414.             enabled,
  415.             "Save"
  416.         },
  417.         /* [2] */
  418.         {87, 211, 107, 271},
  419.         Button {
  420.             enabled,
  421.             "Cancel"
  422.         },
  423.         /* [3] */
  424.         {87, 70, 107, 155},
  425.         Button {
  426.             enabled,
  427.             "Don’t Save"
  428.         },
  429.         /* [4] */
  430.         {10, 20, 42, 52},
  431.         Icon {
  432.             disabled,
  433.             2
  434.         },
  435.         /* [5] */
  436.         {10, 72, 76, 344},
  437.         StaticText {
  438.             disabled,
  439.             "Save changes to the document “^0” before closing?"
  440.         }
  441.     }
  442. };
  443.  
  444.  
  445. /* Command-key codes for corresponding dialog items in Save Changes */
  446. resource 'STR#' ( kSHLsvChangesCmdKeyStrs, purgeable ) {
  447.     {    "s",    /* Save button          */
  448.         ".",    /* Cancel button      */
  449.         "d"        /* Don't Save button */    }
  450. };
  451.  
  452.  
  453. /* Document-dragged-to-Trash alert: */
  454.  
  455. /* Currently no alert is used. If it will be, uncomment this resource. */
  456. #if 0
  457.     resource 'ALRT' (kSHLDragToTrashAlert 
  458.     #If ODDebug
  459.     ,"Trash Alert"
  460.     #endif
  461.     , purgeable) {
  462.         {40, 40, 210, 430},
  463.         kSHLDragToTrashAlert,
  464.         beepStages, 
  465.         alertPositionParentWindowScreen
  466.     };
  467.  
  468.     resource 'DITL' (kSHLDragToTrashAlert,
  469. #if ODDebug
  470. "Trash Alert",
  471. #endif
  472. purgeable /*<eeh> added for 1384356*/) {
  473.         {
  474.             {140, 310, 160, 370},    Button { enabled, "Save" },
  475.             {140, 70, 160, 150},    Button { enabled, "Don't Save" },
  476.             {140, 160, 160, 300},    Button { enabled, "Remove From Trash" },
  477.             {10, 20, 42, 52},        Icon   { disabled, 2 },
  478.             {10, 70, 130, 370},        StaticText { disabled,
  479.                 "The document “^0” has been dragged to the trash. Changes have been made "
  480.                 "since the last time this document was saved. \n\nSave changes to this "
  481.                 "document before closing it?"
  482.             }
  483.         }
  484.     };
  485. #endif
  486.  
  487.  
  488. /* "Revert to the last saved version?" dialog */
  489. resource 'DLOG' (kSHLsvRevert, purgeable /*<eeh> added for 1384356*/) {
  490.     {94, 80, 194, 380},
  491.     dBoxProc, invisible, noGoAway, 0,
  492.     kSHLsvRevert,
  493.     "",
  494.     alertPositionParentWindowScreen
  495. };
  496.  
  497. /* Item list for Revert dialog                                      */
  498. /* Note: Strings in the STR# following this DITL correspond to     */
  499. /* Each DITL item.  Strings represent the command key code       */
  500. /* for buttons in this DITL.                                     */
  501. resource 'DITL' (kSHLsvRevert, purgeable /*<eeh> added for 1384356*/) {
  502.     {    /* array DITLarray: 4 elements */
  503.         /* [1] */
  504.         {73, 230, 93, 290},
  505.         Button {
  506.             enabled,
  507.             "Revert"
  508.         },
  509.         /* [2] */
  510.         {73, 157, 93, 217},
  511.         Button {
  512.             enabled,
  513.             "Cancel"
  514.         },
  515.         /* [3] */
  516.         {10, 20, 42, 52},
  517.         Icon {
  518.             disabled,
  519.             2
  520.         },
  521.         /* [4] */
  522.         {10, 71, 61, 300},
  523.         StaticText {
  524.             disabled,
  525.             "Revert to the last saved version of the document “^1”?"
  526.         }
  527.     }
  528. };
  529.  
  530.  
  531. /* Command-key codes for corresponding dialog items in Revert Dialog */
  532. resource 'STR#' ( kSHLsvRevertCmdKeyStrs, purgeable ) {
  533.     {    "r",    /* Revert button */
  534.         "."        /* Cancel button */    }
  535. };
  536.  
  537. /* "Delete this document?" dialog */
  538. resource 'DLOG' (kSHLDeleteDLOG, purgeable /*<eeh> added for 1384356*/) {
  539.     {94, 80, 194, 380},
  540.     dBoxProc, invisible, noGoAway, 0,
  541.     kSHLDeleteDLOG,
  542.     "",
  543.     alertPositionParentWindowScreen
  544. };
  545.  
  546. /* Item list for Delete dialog                                      */
  547. /* Note: Strings in the STR# following this DITL correspond to     */
  548. /* Each DITL item.  Strings represent the command key code       */
  549. /* for buttons in this DITL.                                     */
  550. resource 'DITL' (kSHLDeleteDLOG, purgeable /*<eeh> added for 1384356*/) {
  551.     {    /* array DITLarray: 4 elements */
  552.         /* [1] */
  553.         {73, 230, 93, 290},
  554.         Button {
  555.             enabled,
  556.             "Delete"
  557.         },
  558.         /* [2] */
  559.         {73, 157, 93, 217},
  560.         Button {
  561.             enabled,
  562.             "Cancel"
  563.         },
  564.         /* [3] */
  565.         {10, 20, 42, 52},
  566.         Icon {
  567.             disabled,
  568.             2
  569.         },
  570.         /* [4] */
  571.         {10, 71, 61, 300},
  572.         StaticText {
  573.             disabled,
  574.             "Delete the document “^1”?"
  575.         }
  576.     }
  577. };
  578.  
  579.  
  580. /* Command-key codes for corresponding dialog items in Revert Dialog */
  581. resource 'STR#' ( kSHLDeleteDLOGCmdKeyStrs, purgeable ) {
  582.     {    "d",    /* Delete button */
  583.         "."        /* Cancel button */    }
  584. };
  585.  
  586.  
  587. /* Save a copy dialog */
  588. resource 'DLOG' (kSHLSaveCopyDlgID
  589. #If ODDebug
  590. , "Save A Copy"
  591. #endif
  592. , purgeable) {
  593.     {0, 0, 178+11+19+7, 344},
  594.     dBoxProc, invisible, noGoAway, 0,
  595.     kSHLSaveCopyDlgID, 
  596.     "",
  597.     alertPositionParentWindowScreen
  598. };
  599.  
  600. resource 'DITL'(kSHLSaveCopyDlgID,
  601. #if ODDebug
  602. "Save A Copy",
  603. #endif
  604. purgeable /*<eeh> added for 1384356*/) {    
  605.     {
  606.         /*   The first 12 items are from the default Save dialog
  607.          *   as described on p.age 3-18 and 3-19 of Inside Mac:Files
  608.          */ 
  609.         /* sfItemOpenButton */
  610.         {154+16+12, 252, 174+16+12, 332}, Button { enabled, "Save" },
  611.         /* sfItemCancelButton */
  612.         {123+12+12, 252, 143+12+12, 332}, Button { enabled, "Cancel" },
  613.         /* sfItemBalloonHelp */
  614.         {0, 0, 0, 0}, UserItem { disabled }, /* HelpItem { disabled, HMScanhdlg {-6043}},*/
  615.         /* sfItemVolumeUser */
  616.         {8, 235, 24, 337}, UserItem { enabled },
  617.         /* sfItemEjectButton */
  618.         {32, 252, 52, 332}, Button { enabled, "Eject" },
  619.         /* sfItemDesktopButton */
  620.         {60, 252, 80, 332}, Button { enabled, "Desktop" },
  621.         /* sfItemFileListUser */
  622.         {29, 12, 127, 230}, UserItem { enabled },
  623.         /* sfItemPopUpMenuUser */
  624.         {6, 12, 25, 230}, UserItem { enabled },
  625.         /* sfItemDividerLinePict */
  626.         {115+6+6, 250, 116+6+6, 334}, Picture { disabled, 11 },
  627.         /* sfItemFileNameTextEdit */
  628.         {150, 15, 150+16, 227}, EditText { enabled, "" },
  629.         /* sfItemPromptStaticText */
  630.         {129, 15, 129+16, 227}, StaticText { disabled, "Save as:" },
  631.         /* sfItemNewFolderUser */
  632.         {88, 252, 108, 332}, UserItem { disabled },
  633.         /* 
  634.          *   New items specific to OpenDoc follow
  635.          */
  636.         /* kSHLSaCDocumentRadioBtn */
  637.         {166+18, 15, 166+18+16, 120}, RadioButton {enabled, "    Document"},
  638.         /* kSHLSaCStationeryRadioBtn */
  639.         {166+18, 125, 166+18+16, 227}, RadioButton {enabled, "    Stationery"},
  640.         /* kSHLSaCKindPopupItem */
  641.         {166+11+16+8+1000, 15-3, 166+11+16+8+19+1000, 227+3}, Control {disabled, kSHLSaCKindPopupItem},
  642.         /* kSHLSaCDocumentIconItem */
  643.         {166+17, 15+17, 166+17+16, 15+17+16}, UserItem {disabled},
  644.         /* kSHLSaCStationeryIconItem */
  645.         {166+17, 125+17, 166+17+16, 125+17+16}, UserItem {disabled}
  646.     }
  647. };
  648.  
  649.  
  650. /* Dialog color table -- allows CustomPutFile to use color */
  651. resource 'dctb' (kSHLSaveCopyDlgID,
  652. #if ODDebug
  653. "Save a Copy",
  654. #endif
  655. purgeable /*<eeh> added for 1384356*/) {
  656.     0,
  657.     0,
  658.     {
  659.         wContentColor,0xFFFF,0xFFFF,0xFFFF
  660.     }
  661. };
  662.  
  663.  
  664. resource 'CNTL' (kSHLSaCKindPopupItem) {
  665.         {173+11, 15-3, 173+11+19, 227+3},
  666.         popupTitleRightJust,
  667.         visible,
  668.         40,                    /* width of title in pixels     */
  669.         kSHLSaCKindPopupMenu,                /* resource id of MENU resource */
  670.         popupMenuCDEFproc+popupUseWFont+popupFixedWidth,
  671.         0,                    /* Refcon */
  672.         "Kind:"
  673. };
  674.  
  675. resource 'MENU' (kSHLSaCKindPopupMenu
  676. #If ODDebug
  677. , "Kind"
  678. #endif
  679. ) {
  680.     kSHLSaCKindPopupMenu,
  681.     textMenuProc,
  682.     allEnabled,
  683.     enabled,
  684.     "Kind",
  685.     {    /* array: 1 elements */
  686.         "Translate to…", noIcon, noKey, noMark, italic
  687.     }
  688. };
  689.  
  690.  
  691. resource 'ics8' (kSHLSaCDocumentIconID) {
  692.     $"00FF FFFF FFFF FFFF FFFF FF00 0000 0000"
  693.     $"00FF F5F5 F5F5 F5F5 F5F5 FFFF 0000 0000"
  694.     $"00FF F5F5 F5F5 F5F5 F5F5 FF2B FF00 0000"
  695.     $"00FF F5F5 F5F5 F5F5 F5F5 FFFF FFFF 0000"
  696.     $"00FF F5F5 F5F5 F5F5 F5F5 F5F5 F5FF 0000"
  697.     $"00FF F5F5 F5F5 F5F5 F5F5 F5F5 F5FF 0000"
  698.     $"00FF F5F5 FFF5 FFFF F5FF FFF5 F5FF 0000"
  699.     $"00FF F5F5 F5F5 F5F5 F5F5 F5F5 F5FF 0000"
  700.     $"00FF F5F5 FFFF FFFF F5FF FFF5 F5FF 0000"
  701.     $"00FF F5F5 F5F5 F5F5 F5F5 F5F5 F5FF 0000"
  702.     $"00FF F5F5 FFFF F5FF FFF5 FFF5 F5FF 0000"
  703.     $"00FF F5F5 F5F5 F5F5 F5F5 F5F5 F5FF 0000"
  704.     $"00FF F5F5 F5F5 F5F5 F5F5 F5F5 F5FF 0000"
  705.     $"00FF F5F5 F5F5 F5F5 F5F5 F5F5 F5FF 0000"
  706.     $"00FF F5F5 F5F5 F5F5 F5F5 F5F5 F5FF 0000"
  707.     $"00FF FFFF FFFF FFFF FFFF FFFF FFFF"
  708. };
  709.  
  710. resource 'ics8' (kSHLSaCStationeryIconID) {
  711.     $"00FF FFFF FFFF FFFF FFFF FFFF 0000 0000"
  712.     $"00FF F5F5 F5F5 F5F5 F5F5 F5FF 0000 0000"
  713.     $"00FF F5F5 F5F5 F5F5 F5F5 F5FF FFFF 0000"
  714.     $"00FF F5F5 F5F5 F5F5 F5F5 F5FF F9FF 0000"
  715.     $"00FF F5F5 FFF5 FFFF F5FF F5FF F9FF 0000"
  716.     $"00FF F5F5 F5F5 F5F5 F5F5 F5FF F9FF 0000"
  717.     $"00FF F5F5 FFFF FFFF F5FF F5FF F9FF 0000"
  718.     $"00FF F5F5 F5F5 F5F5 F5F5 F5FF F9FF 0000"
  719.     $"00FF F5F5 FFFF F5FF FFF5 F5FF F9FF 0000"
  720.     $"00FF F5F5 F5F5 F5F5 F5F5 F5FF F9FF 0000"
  721.     $"00FF F5F5 F5F5 F5F5 FFFF FFFF F9FF 0000"
  722.     $"00FF F5F5 F5F5 F5F5 FFF6 FFF9 F9FF 0000"
  723.     $"00FF F5F5 F5F5 F5F5 FFFF F9F9 F6FF 0000"
  724.     $"00FF FFFF FFFF FFFF FFF9 F9F6 F6FF 0000"
  725.     $"0000 00FF F9F9 F9F9 F9F9 F6F6 F6FF 0000"
  726.     $"0000 00FF FFFF FFFF FFFF FFFF FFFF"
  727. };
  728.  
  729. resource 'ics4' (kSHLSaCDocumentIconID) {
  730.     $"0FFF FFFF FFF0 0000 0F00 0000 00FF 0000"
  731.     $"0F00 0000 00FC F000 0F00 0000 00FF FF00"
  732.     $"0F00 0000 0000 0F00 0F00 0000 0000 0F00"
  733.     $"0F00 F0FF 0FF0 0F00 0F00 0000 0000 0F00"
  734.     $"0F00 FFFF 0FF0 0F00 0F00 0000 0000 0F00"
  735.     $"0F00 FF0F F0F0 0F00 0F00 0000 0000 0F00"
  736.     $"0F00 0000 0000 0F00 0F00 0000 0000 0F00"
  737.     $"0F00 0000 0000 0F00 0FFF FFFF FFFF FF"
  738. };
  739.  
  740. resource 'ics4' (kSHLSaCStationeryIconID) {
  741.     $"0FFF FFFF FFFF 0000 0F00 0000 000F 0000"
  742.     $"0F00 0000 000F FF00 0F00 0000 000F DF00"
  743.     $"0F00 F0FF 0F0F DF00 0F00 0000 000F DF00"
  744.     $"0F00 FFFF 0F0F DF00 0F00 0000 000F DF00"
  745.     $"0F00 FF0F F00F DF00 0F00 0000 000F DF00"
  746.     $"0F00 0000 FFFF DF00 0F00 0000 FCFD DF00"
  747.     $"0F00 0000 FFDD CF00 0FFF FFFF FDDC CF00"
  748.     $"000F DDDD DDCC CF00 000F FFFF FFFF FF"
  749. };
  750.  
  751. resource 'ics#' (kSHLSaCDocumentIconID) {
  752.     {    /* array: 2 elements */
  753.         /* [1] */
  754.         $"7FE0 4030 4028 403C 4004 4004 4B64 4004"
  755.         $"4F64 4004 4DA4 4004 4004 4004 4004 7FFC",
  756.         /* [2] */
  757.         $"7FE0 7FF0 7FF8 7FFC 7FFC 7FFC 7FFC 7FFC"
  758.         $"7FFC 7FFC 7FFC 7FFC 7FFC 7FFC 7FFC 7FFC"
  759.     }
  760. };
  761.  
  762. resource 'ics#' (kSHLSaCStationeryIconID) {
  763.     {    /* array: 2 elements */
  764.         /* [1] */
  765.         $"7FF0 4010 401C 4014 4B54 4014 4F54 4014"
  766.         $"4D94 4014 40F4 40A4 40C4 7F84 1004 1FFC",
  767.         /* [2] */
  768.         $"7FF0 7FF0 7FFC 7FFC 7FFC 7FFC 7FFC 7FFC"
  769.         $"7FFC 7FFC 7FFC 7FFC 7FFC 7FFC 1FFC 1FFC"
  770.     }
  771. };
  772.  
  773.  
  774.  
  775. //-------------------------------------------------------------------------------------
  776. // Folder names
  777. //-------------------------------------------------------------------------------------
  778.  
  779.  
  780. resource 'STR ' (kODEditorsFldrStrID
  781. #If ODDebug
  782. , "Editors Folder name"
  783. #endif
  784. ) {
  785.     "Editors"
  786. };
  787.  
  788. resource 'STR ' (kODStationeryFldrStrID
  789. #If ODDebug
  790. , "Stationery Folder name"
  791. #endif
  792. ) {
  793.     "Stationery"
  794. };
  795.  
  796. resource 'STR ' (kODOpenDocPartsFolderStrID
  797. #If ODDebug
  798. , "OpenDoc Parts Folder name"
  799. #endif
  800. ) {
  801.     "OpenDoc"
  802. };
  803.  
  804. resource 'STR ' (kODShellPlugInFolderStrID
  805. #If ODDebug
  806. , "OD Shell Plug Ins Folder name"
  807. #endif
  808. ) {
  809.     "OpenDoc Shell Plug-Ins"
  810. };
  811.  
  812. // Note: the following two resources were copied from Core.r.
  813.  
  814. resource 'STR ' (kSHLPrefsFileNameResID
  815. #If ODDebug
  816. , "ODPrefs file name"
  817. #endif
  818. ) {
  819.     "OpenDoc Preferences"
  820. };
  821.  
  822. resource 'STR ' (kSHLPrefsFolderNameResID
  823. #If ODDebug
  824. , "ODPrefs folder name"
  825. #endif
  826. ) {
  827.     "OpenDoc Prefs"
  828. };
  829.  
  830. resource 'STR ' (kSHLLauncherNameResID
  831. #if ODDebug
  832. , "Launcher name"
  833. #endif
  834. ) {
  835.     "OpenDoc™"
  836. };
  837.  
  838. resource 'STR ' (kSHLSystemProcessNameResID
  839. #if ODDebug
  840. , "System Process name"
  841. #endif
  842. ) {
  843.     "OpenDoc™"
  844. };
  845.  
  846. resource 'STR ' (kSHLOldLauncherNameResID
  847. #if ODDebug
  848. , "Name to use for obsolete launcher"
  849. #endif
  850. ) {
  851.     "OpenDoc™ 1.0 Document Launcher"
  852. };
  853.  
  854. //-------------------------------------------------------------------------------------
  855. // New filename construction template
  856. //-------------------------------------------------------------------------------------
  857.  
  858. // Shell new filename construction template
  859. // ^0 is the text seed (like "untitled"), ^1 is the date (like "5/18/95")
  860. // Localizers can change string delimiter & order, and can add suffix or prefix
  861. // Note that string will be truncated from end when a number is added to achieve
  862. // filename uniqueness.
  863.  
  864. resource 'STR ' (kSHLNewFilenameTemplateStrID) {
  865.     "^0 ^1"
  866. };
  867.  
  868. #include "UtilCmmn.r"
  869.  
  870. //-------------------------------------------------------------------------------------
  871. // Save, Close and Delete menuitem text construction templates
  872. //-------------------------------------------------------------------------------------
  873.  
  874. resource 'STR ' (kSHLSaveItemTemplateStrID) {
  875.     "Save ^0"
  876. };
  877.  
  878. resource 'STR ' (kSHLCloseItemTemplateStrID) {
  879.     "Close ^0"
  880. };
  881.  
  882. resource 'STR ' (kSHLDeleteItemTemplateStrID) {
  883.     "Delete ^0"
  884. };
  885.  
  886. resource 'STR ' (kSHLPlugInErrorStrID, "") {
  887.     "The OpenDoc Shell Plug-Ins “^0” failed to install properly due to the "
  888.     "following error: “^1” Try removing it from your Shell Plug-Ins folder."
  889. };
  890.  
  891.  
  892. //-------------------------------------------------------------------------------------
  893. // Error handling resources
  894. //-------------------------------------------------------------------------------------
  895.  
  896. /*
  897.     OpenDoc Error Resources
  898.     based on MacApp ErrorMgr resources
  899. */
  900.  
  901. /* NOTE:
  902.  
  903.     By Toolbox convention, the OK button is item 1 and the Cancel button
  904.         is item 2.
  905. */
  906.  
  907. resource 'ALRT' (kSHLphGenError,purgeable) {
  908.     {80, 80, 258, 462},
  909.     kSHLphGenError,
  910.     {    /* array: 4 elements */
  911.         /* [1] */
  912.         OK, visible, sound1;
  913.         /* [2] */
  914.         OK, visible, sound1;
  915.         /* [3] */
  916.         OK, visible, sound1;
  917.         /* [4] */
  918.         OK, visible, sound1
  919.     }
  920. #if SystemSevenOrLater
  921.     ,
  922.     alertPositionParentWindowScreen
  923. #endif
  924. };
  925.  
  926. resource 'DITL' (kSHLphGenError,purgeable) {
  927.     {    /* array DITLarray: 3 elements */
  928.         /* [1] */
  929.         {140, 258, 158, 332},
  930.         Button {
  931.             enabled,
  932.             "OK"
  933.         },
  934.         /* [2] */
  935.         /*    ^0 = userfriendly reason for error and how to recover; 
  936.                 e.g., 'The disk is locked.  Eject the disk and move the tab.'
  937.             or
  938.                 technically detailed reason for error
  939.                 e.g., 'Volume error.'
  940.         */
  941.         {10, 70, 135, 332},
  942.         StaticText {
  943.             disabled,
  944.             "^0\n^2"        /* ^2 is the exception message str in the technical err alert. */
  945.         },
  946.         /* [3] */
  947.         /*    ^1 = exception number for error; 
  948.                 e.g., 'Exception: 5'
  949.         */
  950.         {140, 70, 158, 250},
  951.         StaticText {
  952.             disabled,
  953.             "^1"
  954.         },
  955.         /* [4] */
  956.         {10, 20, 42, 52},
  957.         Icon {
  958.             disabled,
  959.             0
  960.         }
  961.     }
  962. };
  963.  
  964. //-------------------------------------------------------------------------------------
  965. // Misc. Shell Strings
  966. //-------------------------------------------------------------------------------------
  967.  
  968.  
  969. resource 'STR#' (kSHLStrsID, purgeable) {
  970.     {
  971.          "" /* Unused slot. May be reused. See ShellDef.h */
  972. /*        ;"Close"                */
  973. /*        ;"Close Document"        */
  974.         ;"Part Info"
  975.         
  976.         ;"Save a copy as:"
  977.         
  978.         ;"Exception: "
  979.         
  980.         ;"Save as:"
  981.         
  982.     }
  983. };
  984.  
  985. resource 'STR#' (kSHLMiscErrorStringsStrID, purgeable) {
  986.     {
  987. /* 1 */    "This version of OpenDoc™ cannot run under MacOS 8. Please install"
  988.             " a newer version."
  989.     }
  990. };
  991.  
  992. resource 'STR ' (kSHLCopyDefaultStrID, purgeable) {
  993.     "^0 copy"
  994. };
  995.  
  996. resource 'STR ' (kSHLPreODDocNameStrID, purgeable) {
  997.     "^0 OD"
  998. };
  999.  
  1000.  
  1001.  
  1002. /********* Stuff for the Debug menu **********/
  1003.  
  1004. #if ODDebug
  1005.  
  1006. resource 'ALRT' (980
  1007. #If ODDebug
  1008. , "Heap Info [debug only]"
  1009. #endif
  1010. ) {
  1011.     {40, 40, 201, 412},
  1012.     980,
  1013.     {    /* array: 4 elements */
  1014.         /* [1] */
  1015.         OK, visible, silent,
  1016.         /* [2] */
  1017.         OK, visible, silent,
  1018.         /* [3] */
  1019.         OK, visible, silent,
  1020.         /* [4] */
  1021.         OK, visible, silent
  1022.     },
  1023.     alertPositionParentWindowScreen
  1024. };
  1025.  
  1026.  
  1027. resource 'DITL' (980
  1028. #If ODDebug
  1029. , "Heap Info [debug only]"
  1030. #endif
  1031. ) {
  1032.     {    /* array DITLarray: 7 elements */
  1033.         /* [1] */
  1034.         {132, 296, 152, 354},
  1035.         Button {
  1036.             enabled,
  1037.             "OK"
  1038.         },
  1039.         /* [2] */
  1040.         {10, 72, 29, 360},
  1041.         StaticText {
  1042.             disabled,
  1043.             "^0:"
  1044.         },
  1045.         /* [3] */
  1046.         {28, 72, 79, 162},
  1047.         StaticText {
  1048.             disabled,
  1049.             "Bytes used:\nBytes free:\nBlock count:"
  1050.         },
  1051.         /* [4] */
  1052.         {28, 161, 79, 280},
  1053.         StaticText {
  1054.             disabled,
  1055.             "^1"
  1056.         },
  1057.         /* [5] */
  1058.         {89, 72, 108, 360},
  1059.         StaticText {
  1060.             disabled,
  1061.             "^2:"
  1062.         },
  1063.         /* [6] */
  1064.         {107, 72, 158, 162},
  1065.         StaticText {
  1066.             disabled,
  1067.             "Bytes used:\nBytes free:\nLargest free space:"
  1068.         },
  1069.         /* [7] */
  1070.         {107, 161, 158, 280},
  1071.         StaticText {
  1072.             disabled,
  1073.             "^3"
  1074.         }
  1075.     }
  1076. };
  1077.  
  1078. #endif /* ODDebug */
  1079.  
  1080. resource 'ALRT' (493
  1081. #if ODDebug
  1082. ,"Shell Low Memory Error"
  1083. #endif
  1084. /* not purgable because lowmem*/,preload) {
  1085.     {40, 40, 142, 318},
  1086.     493,
  1087.     {    /* array: 4 elements */
  1088.         /* [1] */
  1089.         OK, visible, sound1,
  1090.         /* [2] */
  1091.         OK, visible, sound1,
  1092.         /* [3] */
  1093.         OK, visible, sound1,
  1094.         /* [4] */
  1095.         OK, visible, sound1
  1096.     },
  1097.     alertPositionMainScreen
  1098. };
  1099.  
  1100. /* NOTE THAT WE EXPLICITLY USE ICON #0 IN THIS DITL RATHER THAN CALLING
  1101.     StopAlert TO INSERT THE ICON. WE DO THIS BECAUSE WE WANT TO MAKE SURE
  1102.     THE ICON IS ALWAYS LOADED INTO MEMORY */
  1103.  
  1104. resource 'DITL' (493
  1105. #if ODDebug
  1106. ,"Shell Low Memory Error"
  1107. #endif
  1108. /* not purgable because lowmem*/,preload) {
  1109.     {    /* array DITLarray: 3 elements */
  1110.         /* [1] */
  1111.         {69, 201, 89, 263},
  1112.         Button {
  1113.             enabled,
  1114.             "Quit"
  1115.         },
  1116.         /* [2] */
  1117.         {10, 72, 58, 265},
  1118.         StaticText {
  1119.             disabled,
  1120.             "Sorry, this document must immediately qu"
  1121.             "it due to very low memory."
  1122.         },
  1123.         /* [3] */
  1124.         {11, 20, 43, 52},
  1125.         Icon {
  1126.             disabled,
  1127.             0
  1128.         }
  1129.     }
  1130. };
  1131.  
  1132. resource 'ALRT' (496
  1133. #if ODDebug
  1134. ,"Shell Generic Goodbye Error"
  1135. #endif
  1136. , purgeable /*<eeh> added for 1384356*/,preload) {
  1137.     {40, 40, 142, 318},
  1138.     496,
  1139.     {    /* array: 4 elements */
  1140.         /* [1] */
  1141.         OK, visible, sound1,
  1142.         /* [2] */
  1143.         OK, visible, sound1,
  1144.         /* [3] */
  1145.         OK, visible, sound1,
  1146.         /* [4] */
  1147.         OK, visible, sound1
  1148.     },
  1149.     alertPositionMainScreen
  1150. };
  1151.  
  1152. /* NOTE THAT WE EXPLICITLY USE ICON #0 IN THIS DITL RATHER THAN CALLING
  1153.     StopAlert TO INSERT THE ICON. WE DO THIS BECAUSE WE WANT TO MAKE SURE
  1154.     THE ICON IS ALWAYS LOADED INTO MEMORY */
  1155.  
  1156. resource 'DITL' (496
  1157. #if ODDebug
  1158. ,"Shell Generic Goodbye Error"
  1159. #endif
  1160. /* not purgable because lowmem*/,preload) {
  1161.     {    /* array DITLarray: 3 elements */
  1162.         /* [1] */
  1163.         {69, 201, 89, 263},
  1164.         Button {
  1165.             enabled,
  1166.             "Quit"
  1167.         },
  1168.         /* [2] */
  1169.         {10, 72, 58, 265},
  1170.         StaticText {
  1171.             disabled,
  1172.             "Sorry, an irrecoverable error has occurred opening this document."
  1173.         },
  1174.         /* [3] */
  1175.         {11, 20, 43, 52},
  1176.         Icon {
  1177.             disabled,
  1178.             0
  1179.         }
  1180.     }
  1181. };
  1182.  
  1183. resource 'ALRT' (497
  1184. #if ODDebug
  1185. ,"Shell Corrupt Doc Error"
  1186. #endif
  1187. , purgeable /*<eeh> added for 1384356*/,preload) {
  1188.     {40, 40, 142, 318},
  1189.     497,
  1190.     {    /* array: 4 elements */
  1191.         /* [1] */
  1192.         OK, visible, sound1,
  1193.         /* [2] */
  1194.         OK, visible, sound1,
  1195.         /* [3] */
  1196.         OK, visible, sound1,
  1197.         /* [4] */
  1198.         OK, visible, sound1
  1199.     },
  1200.     alertPositionMainScreen
  1201. };
  1202.  
  1203. /* NOTE THAT WE EXPLICITLY USE ICON #0 IN THIS DITL RATHER THAN CALLING
  1204.     StopAlert TO INSERT THE ICON. WE DO THIS BECAUSE WE WANT TO MAKE SURE
  1205.     THE ICON IS ALWAYS LOADED INTO MEMORY */
  1206.  
  1207. resource 'DITL' (497
  1208. #if ODDebug
  1209. ,"Shell Corrupt Doc Error"
  1210. #endif
  1211. , purgeable /*<eeh> added for 1384356*/,preload) {
  1212.     {    /* array DITLarray: 3 elements */
  1213.         /* [1] */
  1214.         {69, 201, 89, 263},
  1215.         Button {
  1216.             enabled,
  1217.             "Quit"
  1218.         },
  1219.         /* [2] */
  1220.         {10, 72, 58, 265},
  1221.         StaticText {
  1222.             disabled,
  1223.             "Sorry, this document is corrupt and cannot be repaired."
  1224.         },
  1225.         /* [3] */
  1226.         {11, 20, 43, 52},
  1227.         Icon {
  1228.             disabled,
  1229.             0
  1230.         }
  1231.     }
  1232. };
  1233.  
  1234. resource 'ALRT' (495
  1235. #if ODDebug
  1236. ,"Finder not running"
  1237. #endif
  1238. , purgeable /*<eeh> added for 1384356*/) {
  1239.      {40, 40, 168, 390},
  1240.     495,
  1241.     {    /* array: 4 elements */
  1242.         /* [1] */
  1243.         OK, visible, sound1,
  1244.         /* [2] */
  1245.         OK, visible, sound1,
  1246.         /* [3] */
  1247.         OK, visible, sound1,
  1248.         /* [4] */
  1249.         OK, visible, sound1
  1250.     },
  1251.     alertPositionMainScreen
  1252. };
  1253.  
  1254. resource 'DITL' (495
  1255. #if ODDebug
  1256. ,"Finder not running"
  1257. #endif
  1258. , purgeable /*<eeh> added for 1384356*/) {
  1259.     {    /* array DITLarray: 2 elements */
  1260.         /* [1] */
  1261.         {91, 270, 111, 328},
  1262.         Button {
  1263.             enabled,
  1264.             "OK"
  1265.         },
  1266.         /* [2] */
  1267.         {10, 83, 76, 338},
  1268.         StaticText {
  1269.             disabled,
  1270.             "This OpenDoc command cannot be completed"
  1271.             " because the Finder is not running. To s"
  1272.             "tart the Finder, close all documents and"
  1273.             " quit all applications."
  1274.         }
  1275.     }
  1276. };
  1277.  
  1278. // THIS ALERT AND DITL ARE DUPLICATED IN OPENDOCX.RES
  1279.  
  1280. resource 'ALRT' (2001, purgeable /*<eeh> added for 1384356*/) {
  1281.     {40, 40, 141, 389},
  1282.     2001,
  1283.     {    /* array: 4 elements */
  1284.         /* [1] */
  1285.         OK, visible, sound1,
  1286.         /* [2] */
  1287.         OK, visible, sound1,
  1288.         /* [3] */
  1289.         OK, visible, sound1,
  1290.         /* [4] */
  1291.         OK, visible, sound1
  1292.     },
  1293.     centerParentWindowScreen
  1294. };
  1295.  
  1296. resource 'DITL' (2001, purgeable /*<eeh> added for 1384356*/) {
  1297.     {    /* array DITLarray: 4 elements */
  1298.         /* [1] */
  1299.         {68, 278, 88, 336},
  1300.         Button {
  1301.             enabled,
  1302.             "OK"
  1303.         },
  1304.         /* [2] */
  1305.         {10, 64, 59, 339},
  1306.         StaticText {
  1307.             disabled,
  1308.             "^0"
  1309.         }
  1310.     }
  1311. };
  1312.  
  1313. /* Can't create stationery */
  1314.  
  1315. resource 'ALRT' (456
  1316. #if ODDebug
  1317. ,"Can't create stationery"
  1318. #endif
  1319. , purgeable) {
  1320.     {40, 40, 142, 318},
  1321.     456,
  1322.     {    /* array: 4 elements */
  1323.         /* [1] */
  1324.         OK, visible, sound1,
  1325.         /* [2] */
  1326.         OK, visible, sound1,
  1327.         /* [3] */
  1328.         OK, visible, sound1,
  1329.         /* [4] */
  1330.         OK, visible, sound1
  1331.     },
  1332.     alertPositionMainScreen
  1333. };
  1334.  
  1335. resource 'DITL' (456
  1336. #if ODDebug
  1337. ,"Can't create stationery"
  1338. #endif
  1339. , purgeable) {
  1340.     {    /* array DITLarray: 3 elements */
  1341.         /* [1] */
  1342.         {69, 201, 89, 263},
  1343.         Button {
  1344.             enabled,
  1345.             "OK"
  1346.         },
  1347.         /* [2] */
  1348.         {10, 72, 58, 265},
  1349.         StaticText {
  1350.             disabled,
  1351.             "Sorry, stationery cannot be created for "
  1352.             "viewers."
  1353.         },
  1354.         /* [3] */
  1355.         {11, 20, 43, 52},
  1356.         Icon {
  1357.             disabled,
  1358.             0
  1359.         }
  1360.     }
  1361. };
  1362.  
  1363.  
  1364.  
  1365. /*#endif*/
  1366.